{% extends "base_2col.html" %}
{% load comments%}

{% block content %}
<div id="content">
{% for object in latest %}
{% get_comment_count for object as comment_count %}
      <div class="post">
        <div class="title">
           <h2><a href="{{ object.get_absolute_url }}">{{ object.title|safe }}</a></h2>
           <p class="date small">Posted by <strong>{{ object.author }}</strong> on {{ object.pub_date|date:"F j, Y" }}. [Comments: {{comment_count}}]</p>
       </div>
        
        <div class="entry">
           {{ object.body_html|truncatewords_html:"200"|safe }}
        </div>
      </div> 
{% endfor %}
</div>
{% endblock %}



{% block sidebar %}
	<div id="sidebar">
		<ul>
			<li id="categories">
				<h2>Categories</h2>
				<ul>
				    <li><a href="/zblog/category/technical/">Technical</a></li>
					<li><a href="/zblog/category/research/">Research</a></li>
					<li><a href="/zblog/category/personal/">Personal</a></li>
					<li><a href="/zblog/category/others/">Others</a></li>
				</ul>
			</li>	
		</ul>
		
		<ul>
			<li id="archieves">
				<h2>Archives</h2>
				<ul>
				    <li><a href="/zblog/2009/may/">May 2009</a></li>
				</ul>
			</li>	
		</ul>
		
		<ul>
			<li id="tags">
				<h2>Tags</h2>
				<ul>
				{% for tag in tag_list %}
					<li><a href="/zblog/tags/{{ tag }}/">{{ tag }}</a></li>
				{% endfor %}
				</ul>
			</li>	
		</ul>
		
	</div>
{% endblock %}
